package com.gg.registration.order.feignClient;

import com.gg.registration.model.user.Patient;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * Author：  chenjunjia
 * Date：    2022/4/25 15:27
 * WeChat：  China_JoJo_
 */
@FeignClient(value = "service-user",path = "/api/user/patient")
@Repository
public interface PatientFeignClient {

    /**
     * 获取就诊人信息
     * @param id 就诊人id
     * @return
     */
    @GetMapping("inner/get/{id}")
    Patient getPatient(@PathVariable("id") Long id);
}
